package com.atguigu.category.service;

import com.atguigu.param.PageParam;
import com.atguigu.param.ProductHotParam;
import com.atguigu.pojo.Category;
import com.atguigu.utils.R;

public interface CategoryService {
    R byName(String categoryName);

    R hotsCategory(ProductHotParam productHotParam);

    R list();

    //完成对后台管理项目部分category管理的crud
    R listPage(PageParam pageParam);

    R adminSave(Category category);

    R adminRemove(Integer categoryId);

    R adminUpdate(Category category);
}
